package lab01;

public class Test13 {
    public static void main(String[] args) {
        int i;
        int a;
        int b;
        int c;
        for (i = 100; i <= 999; i++) {
            a = i % 10;//个位
            b = i / 10 % 10;//十位
            c = i / 100;//百位
            if (i == a * a * a + b * b * b + c * c * c) {
                System.out.println(i);
            }
        }
    }
}

